package com.gome.axwl.aoc.service.sso;

import com.anxl.sso.client.service.SharedAnxlSsoClientService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author limingwei2
 */
//@Component
public class ServerGomeSsoClientService extends SharedAnxlSsoClientService {
    private Logger log = LoggerFactory.getLogger(this.getClass());

/*@Override

public String findLocalUserId(Token token) {
return token.getUid();
}

@Override
public void loginSuccess(String localUserId, HttpServletRequest request, HttpServletResponse response) {
log.info("loginSuccess(), parameterMap=" + JSON.toJSONString(request.getParameterMap()));

Integer userId = Integer.valueOf(localUserId);

HttpSession session = request.getSession();
session.setAttribute(Constants.USER_ID_IN_SESSION_KEY, userId);
String referer = (String) session.getAttribute("");

if (StringUtils.isEmpty(referer) || "null".equals(referer)) {
ResponseUtil.sendRedirect(response, "/?login_success_no_referer");
} else {
session.removeAttribute("");
ResponseUtil.sendRedirect(response, referer);
}
}*/
}
